package git_cmd

import "github.com/spf13/cobra"

var gitFlagLocalPath string

var GitCmd = &cobra.Command{
	Use: "git",
}

func init() {
	GitCmd.PersistentFlags().StringVar(&gitFlagLocalPath, "localPath", "", "set local git path")
	GitCmd.MarkPersistentFlagRequired("localPath")
	GitCmd.AddCommand(_CloneGit, _StatusCmd, _AddCmd, _UnaddCmd, _CheckoutGit, _CommitGit,
		_PullGit, _PushGit, _InstallLfsGit, _ListLfsFile, _AddTagCmd, _AddBranchCmd, _RemoveGitCmd, _RemoveBranchCmd, _StashPopGit, _StashPushGit, _StashDropGit)
}
